< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03130500.xhp

(section: shell) (bookmark: bm_id3150040)
Shell function

Shell 関数

Shell Function [Runtime]
Shell 関数 [実行時](hd_id3150040.1)

Starts another application and defines the respective window style, if necessary.
他のアプリケーションを起動し、必要であれば表示ウィンドウのスタイル設定なども行います。(par_id3153394.2)

(/section: shell)

Syntax
構文(hd_id3153345.4)

Shell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync])
Shell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync]) (par_id3147576.5)

Parameter
パラメータ(hd_id3149235.6)

Pathname
Pathname(hd_id3154306.23)

Complete path and program name of the program that you want to start.
実行するプログラムの名前と絶対パス。(par_id3155419.7)

Windowstyle
Windowstyle(hd_id3150771.24)

Optional integer expression that specifies the style of the window that the program is executed in. The following values are possible:
オプション設定として、プログラムの実行ウィンドウのスタイルを指定する整数表式。ここには下記の値を指定できます。(par_id3145609.8)

0
0(par_id3148663.25)

The focus is on the hidden program window.
プログラムウィンドウを非表示にして、フォーカスを移動します。(par_id3153360.10)

1
1(par_id3154123.26)

The focus is on the program window in standard size.
プログラムウィンドウを標準サイズにして、フォーカスを移動します。(par_id3144760.11)

2
2(par_id3156422.27)

The focus is on the minimized program window.
プログラムウィンドウを最小化 (アイコン化) して、フォーカスを移動します。(par_id3148451.12)

3
3(par_id3149561.28)

focus is on the maximized program window.
プログラムウィンドウを最大表示にして、フォーカスを移動します。(par_id3146921.13)

4
4(par_id3149481.29)

Standard size program window, without focus.
プログラムウィンドウを標準サイズにしますが、フォーカスは移動しません。(par_id3155854.14)

6
6(par_id3145271.30)

Minimized program window, focus remains on the active window.
プログラムウィンドウを最小化しますが、フォーカスはアクティブウィンドウにとどめておきます。(par_id3152938.15)

10
10(par_id3146119.31)

Full-screen display.
全画面表示にします。(par_id3151112.16)


Param
Param(hd_id3150419.33)

Any string expression that specifies the command line that want to pass.
実行するアプルケーションに渡すコマンド行パラメータを示す文字列表式。(par_id3149412.17)

bSync
BSync(hd_id3148456.32)

If this value is set to true, the Shell command and all Office tasks wait until the shell process completes. If the value is set to false, the shell returns directly. The default value is false.
この値に True を指定すると、シェルプロセスの実行が完了するまで、Shell コマンドを含めたすべての Office のタスクが待機します。この値に False を指定すると、実行直後にシェル制御が戻ります。デフォルト値は False です。(par_id3154096.18)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

(embed text/sbasic/shared/00000003.xhp#err53 : linkinfo)

53 File not found
53 ファイルが見つかりません (par_id3151338.59)

(/embed text/sbasic/shared/00000003.xhp#err53)

(embed text/sbasic/shared/00000003.xhp#err73 : linkinfo)

73 Feature not implemented
73 機能が実装されていません (par_id3148894.72)

(/embed text/sbasic/shared/00000003.xhp#err73)

Example
(hd_id3154270.19)

Sub ExampleShellForWin
Sub ExampleShellForWin(par_id3153948.20)

Shell("c:\windows\calc.exe",2)
Shell("c:\windows\calc.exe",2)(par_id3154479.21)

end sub
end sub(par_id3153709.22)


< Prev / Next >